package cn.tcmp.service;

import cn.tcmp.dao.DetailMapper;
import cn.tcmp.entity.Detail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DetailServiceImpl implements DetailService {
    @Autowired
    private DetailMapper detailMapper;

    @Override
    public List<Detail> queryAll(Integer sortId) {
        return detailMapper.queryAll(sortId);
    }

    @Override
    public Integer save(Detail detail) {
        return detailMapper.insert(detail);
    }

}
